﻿@model Pro260Website.Models.ListingViewModel<Domain.Entity.Company>
@{
    ViewBag.Title = "Companies";
}


    <h1 class="title @Html.GetColor(Request.Cookies["color"])">Companies</h1>

<br />

<div id="titlelessItem"  style="float: right">
    <div class = "item roundTextBox @Html.GetColor(Request.Cookies["color"])">
        @using (Html.BeginForm("Listings", "Company"))
        {
            <input type="text" name="SearchField" />
            <input type="submit" value="Search" class = "actionButtons @Html.GetColor(Request.Cookies["color"])"/>
        }
    </div>
</div>
        <br/><br/><br/><br/><br/><br/>
        <table style="text-align: center" class="defaultGrey">
            <tr class="tHeader @Html.GetColor(Request.Cookies["color"])">
                <th>Name</th>
                <th>Type</th>
            </tr>
            @foreach (var c in Model.Items)
            {
                <tr>
                    <td>@c.Name</td>
                    <td>@c.Type</td>
                </tr>
            }    
        </table>
        <br/><br/>
        <div id="pagerForm" class="pager @Html.GetColor(Request.Cookies["color"])">
            @Html.PageLinks(Model.PagingInfo, i => Url.Action("Listings", "Company", new { SearchField = Model.QueryInfo.QueryString, page = i, pageSize = Model.PagingInfo.ItemsPerPage }))
        </div>
    <br/>

